﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using prototype123.models;

namespace prototype123.controllers
{

    
    class LoginController
    {

        // Checks to see if there is an educator with the <uname> and <pass> in the database
        // Returns true if there is, and returns false otherwise
        // Preconditions: <uname> and <pass> are non-null, and non empty strings
        // Postconditions: a user has logged in, and an educator has been given to currEducator static variable
        public bool Login(string uname, string pass)
        {
            // UserDAO udao = new UserDAO();

            // User user = udao.load(uname, pass);

            // if the above command fails, the return false
            
            // EducatorDAO edao = new EducatorDAO();

            // Educator ed = edao.load(user.idorsomething);

            // set currEducator = to the educator associated with user.

            return true;

        }
        

    }
}
